package config;

import org.apache.camel.spring.SpringRouteBuilder;
import org.springframework.stereotype.Component;
import processors.PreHttpProcessor;

/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 21.07.12
 * Time: 17:37
 */
@Component
public class RouteBuilder extends SpringRouteBuilder {
    public PreHttpProcessor preHttpProcessor=new PreHttpProcessor();
    @Override
    public void configure() throws Exception {
        from("direct:start").to("mock:result");
        from("cxf:bean:httpMessageEndpoint").process(preHttpProcessor).to("mock:result");
    }
}
